package com.SouthernWall_404.AgeSuitcase.Common.API;

import com.SouthernWall_404.AgeSuitcase.Common.init.ModSounds;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.sounds.SimpleSoundInstance;
import net.minecraft.sounds.SoundEvent;

// GUI 音效工具类
public class GuiSoundHelper {
    
    // 播放 GUI 音效的通用方法
    public static void playSound(SoundEvent sound) {
        Minecraft.getInstance().getSoundManager().play(SimpleSoundInstance.forUI(sound, 1.0F, 1.0F));
    }
    
    // 播放按钮点击音效
    public static void playButtonClick() {
        playSound(ModSounds.GUI_BUTTON_CLICK.get());
    }
    public static void playLoadingFinish() {
        playSound(ModSounds.GUI_LOADING_FINISH.get());
    }
    public static void playLoadingTyping() {
        playSound(ModSounds.GUI_LOADING_TYPING.get());
    }

}